import request from '@/utils/request';
// 查询列表数据
export function queryWeekdays(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/weekdays/queryPageWeekday',
		method: 'post',
		data: data,
	});
}

// 新增某一年的工作日和节假日
export function addWeekdays(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/weekdays/addOneYearDays',
		method: 'post',
		data: data,
	});
}

// 修改工作日和节假日状态
export function updateWeekdays(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/weekdays/updateTypeByDay',
		method: 'post',
		data: data,
	});
}

// 删除一整年的节假日和工作日数据
export function delWeekdays(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/weekdays/deleteByTimeRange',
		method: 'post',
		data: data,
	});
}
